import yaml


class GetAppDatas:
    def __init__(self,path):
        with open(path, "r", encoding="utf-8") as f:
            self.datas =yaml.safe_load(f)

    def get_desired_caps(self):
        return self.datas['desired_caps']

    def get_ip(self):
        return self.datas['remote']['ip']

    def get_port(self):
        return self.datas['remote']['port']

    def get_blicklist(self):
        return self.datas['blicklist']['click']


